package cn.iocoder.yudao.module.agent.enums;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@AllArgsConstructor
@Getter
public enum AgentBrokerageWithdrawStatusEnum implements IntArrayValuable {
    AUDITING(0, "审核中"),
    AUDIT_SUCCESS(10, "审核通过"),
    AUDIT_FAIL(20, "审核不通过"),
    WITHDRAW_FAIL(30, "提现失败"),
    ;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(AgentBrokerageWithdrawStatusEnum::getStatus).toArray();

    /**
     * 状态
     */
    private final Integer status;
    /**
     * 名字
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
